home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
kermit.columbia.edu
/
kermit.columbia.edu.tar
/
kermit.columbia.edu
/
newsgroups
/
misc.19950528-19950726
/
000230_news@columbia.edu_Wed Jun 28 08:01:59 1995.msg
< prev
next >
Wrap
Internet Message Format
|
1995-07-31
|
2KB
Received: from apakabar.cc.columbia.edu by watsun.cc.columbia.edu with SMTP id AA05100
(5.65c+CU/IDA-1.4.4/HLK for <kermit.misc@watsun.cc.columbia.edu>); Wed, 28 Jun 1995 04:14:49 -0400
Received: by apakabar.cc.columbia.edu id AA11086
(5.65c+CU/IDA-1.4.4/HLK for kermit.misc@watsun); Wed, 28 Jun 1995 04:14:48 -0400
Path: news.columbia.edu!sol.ctr.columbia.edu!howland.reston.ans.net!cam.news.pipex.net!pipex!soap.news.pipex.net!pipex!edi.news.pipex.net!pipex!sunic!sunic.sunet.se!news.funet.fi!news.cc.tut.fi!news
From: t130313@130.230.102.14 (Pasi Tolonen)
Newsgroups: comp.dcom.modems,comp.protocols.kermit.misc
Subject: Re: Improved modem dialing for C-Kermit
Date: 28 Jun 1995 08:01:59 GMT
Organization: Tampere University of Technology
Lines: 38
Distribution: world
Message-Id: <3sr29n$hcu@cc.tut.fi>
References: <3seuml$4s6@apakabar.cc.columbia.edu> <3sft9o$8ul@Mars.mcs.com> <3shhv6$6r9@apakabar.cc.columbia.edu> <3sl921$29m@Mercury.mcs.com>
Reply-To: Pasi.Tolonen@cs.tut.fi
Nntp-Posting-Host: kummis21.cc.tut.fi
Mime-Version: 1.0
X-Newsreader: WinVN 0.99.4
Xref: news.columbia.edu comp.dcom.modems:99709 comp.protocols.kermit.misc:3064
Apparently-To: kermit.misc@watsun.cc.columbia.edu
In article <3sl921$29m@Mercury.mcs.com>, les@MCS.COM says...
>My questions are more general:
>
>How do I make kermit automatically select a suitable free modem from
>those available on the machine? (Preferably without having to keep
>a user base aware of changes or modify scripts every time a modem
>is replaced or moved).
Leslie,
In our Unix-environments, we handle the situation you described earlier:
...
def POR_SEL IF EXIST /usr/spool/uucp/LCK..tty1a goto NEXT,
set line /dev/tty1a, echo Port tty1a selected, goto PORT_OK,
:NEXT, IF EXIST /usr/spool/uucp/LCK..ttya01 goto NEXT2,
set line /dev/ttya01, echo Port ttya01 selected, goto PORT_OK,
:NEXT2, IF EXIST /usr/spool/uucp/LCK..tty2a goto PORT_FAIL,
set line /dev/tty2A, echo Port tty2A selected,
:PORT_OK, pause 3, GOTO AWAY,
:PORT_FAIL, echo All modems are in use, pause 3,
:AWAY
...
I quickly translated this from finnish to english, so please allow any
typing mistakes and test it before use (Hmm... actually from script/finnish
to script/english ;-)). Quick and very very dirty, but it works!
Regards,
Pasi
--
Pasi Tolonen Systems Manager Analyste Oy
tel: +358-31-2133544 fax: +358-31-2227701 email:Pasi.Tolonen@cs.tut.fi